from django.conf.urls import url
from . import views
from app.forms import BootstrapAuthenticationForm
from datetime import datetime
import django.contrib.auth.views

app_name = "app"
urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^contact$', views.contact, name='contact'),
    url(r'^about$', views.about, name='about'),
	url(r'^login/$',
	    django.contrib.auth.views.login,
	    {
	        'template_name': 'app/login.html',
	        'authentication_form': BootstrapAuthenticationForm,
	        'extra_context':
	        {
	            'title': 'Log in',
	            'year': datetime.now().year,
	        }
	    },
	    name='login'),
	url(r'^logout$',
	    django.contrib.auth.views.logout,
	    {
	        'next_page': '/',
	    },
	    name='logout'),
	
]

